package com.oa.pm.mapper;

import com.baomidou.mybatisplus.plugins.Page;
import com.oa.pm.entity.InductionTraining;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.oa.pm.vo.DimissionManagementDetailsVO;
import com.oa.pm.vo.InductionTrainingDetailsVO;
import com.oa.pm.vo.InductionTrainingVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 入职培训表 Mapper 接口
 * </p>
 *
 * @author syb123
 * @since 2019-01-22
 */
public interface InductionTrainingMapper extends BaseMapper<InductionTraining> {
    /**
     * 分页查询列表
     *
     * @param page
     * @return
     */
    List<InductionTraining> findList(Pagination page);

    /**
     * 查询所有列表
     *
     * @return
     */
    List<InductionTraining> findList();

    /**
     * 根据id查询
     */
    InductionTraining findById(@Param("id") String id);

    /**
     * 查询所有入职培训
     * @param page
     * @param map
     * @return
     */
    List<InductionTrainingVO> findInductionTrainingList(Page page, Map map);

    InductionTrainingDetailsVO findInductionTrainingById(String id);
}
